home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000181_news@newsmaster….columbia.edu _Sun Aug 17 08:27:49 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id IAA27970
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 17 Aug 1997 08:27:49 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id IAA13030
  7.     for kermit.misc@watsun; Sun, 17 Aug 1997 08:27:48 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!204.97.220.6!earth.superlink.net!not-for-mail
  9. From: TTSG <ttsg@ttsg.com>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: How do I start ckepage.ksc from command line
  12. Date: Sun, 17 Aug 1997 08:17:40 -0400
  13. Organization: TTSG
  14. Lines: 62
  15. Sender: (@8.#9Z7:]_0 @tucsapt.superlink.net
  16. Message-ID: <33F6EBE4.31AECA6E@ttsg.com>
  17. References: <871757417.12783@dejanews.com> <5t4uc7$8a0$1@apakabar.cc.columbia.edu>
  18. NNTP-Posting-Host: tucsapt.superlink.net
  19. Mime-Version: 1.0
  20. Content-Type: text/plain; charset=us-ascii
  21. Content-Transfer-Encoding: 7bit
  22. X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.0 i486)
  23. To: Frank da Cruz <fdc@watsun.cc.columbia.edu>
  24. Xref: news.columbia.edu comp.protocols.kermit.misc:7487
  25.  
  26. Frank da Cruz wrote:
  27. > In article <871757417.12783@dejanews.com>,  <ttsg@ttsg.com> wrote:
  28. > : I'm wondering now that I got the ckepage.ksc script working, how can I
  29. > : start it from a command line and include all the parameters for apage?  I
  30. > : want to have a shell or perl script invoke it and just wait for the reply
  31. > : if it was good or bad.
  32. > :
  33. > See pages 353, 467-468, and 513 of "Using C-Kermit".  Briefly, make the
  34. > script into an "application" or "shebang" file, and read the command line
  35. > arguments from the \&@[] array.
  36. > - Frank
  37. Frank,
  38.  
  39.     Thanks for the quick and helpful reply! Having the pages to go directly
  40. to is great.
  41.  
  42.     One word though, the script at:
  43.  
  44. ftp://kermit.columbia.edu/kermit/f/ckepage.ksc
  45.  
  46. Is broken. It drove me nuts for almost 2 hours until I got enough
  47. debugging in it.  What happened was I would get the ACK for the ESC-PG1,
  48. then it would stay in the loop and keep claiming timeouts.  When I
  49. looked at it, I realized it couldn't work.... How did it ever get out of
  50. the for loop!?
  51.  
  52. THERE IS A "BREAK" MISSING!
  53.  
  54. for \%i 1 3 1 {            ; Send <ESC>PG1, get <ACK>
  55.         msl 500
  56.         out \{27}PG1\13
  57.         min 3 {\6\13} {\21\13} {\27\4\13}
  58.         switch \v(minput) {
  59.           :0, continue                ; Timeout
  60.           :1, break                   ; <ACK>
  61.           :2, continue                ; <NAK>
  62.           :3, stop 1 Forced disconnect ; Fatal error
  63.         }
  64.     }
  65.  
  66.  
  67. SHOULD BE :
  68.  
  69. for \%i 1 3 1 {            ; Send <ESC>PG1, get <ACK>
  70.         msl 500
  71.         out \{27}PG1\13
  72.         min 3 {\6\13} {\21\13} {\27\4\13}
  73.         switch \v(minput) {
  74.           :0, continue                ; Timeout
  75.           :1, break                   ; <ACK>
  76.           :2, continue                ; <NAK>
  77.           :3, stop 1 Forced disconnect ; Fatal error
  78.         }
  79.         break
  80.     }
  81.  
  82. Can you see if it can be fixed??
  83.  
  84.  
  85. Thanks, Tuc/TTSG